package com.ruoyi.sales.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.io.Serializable;
import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.annotation.Excel;

/**
* 销售产品对象 zc_sales_products
*
* @author woo
* @date 2024-04-09
*/
@TableName("zc_sales_products")
public class ZcSalesProducts implements Serializable
{
private static final long serialVersionUID = 1L;

/** 销售产品表id */
@TableId(value = "product_id",type = IdType.AUTO)
private Long productId;

/** 销售单id */
private Long salesId;

/** 产品id */
private Long productNumber;

/** 销售产品编码 */
@Excel(name = "销售产品编码")
private Long salesProductNumber;

/** 米数 */
@Excel(name = "米数")
private String meters;

/** 状态（开立/生产中/已完成） */
@Excel(name = "状态", readConverterExp = "开=立/生产中/已完成")
private String status;

/** 逻辑删除 */
private Long del;

    /** 创建者 */
    private String createBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 更新者 */
    private String updateBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public void setProductId(Long productId)
{
this.productId = productId;
}

public Long getProductId()
{
return productId;
}
public void setSalesId(Long salesId)
{
this.salesId = salesId;
}

public Long getSalesId()
{
return salesId;
}
public void setProductNumber(Long productNumber)
{
this.productNumber = productNumber;
}

public Long getProductNumber()
{
return productNumber;
}
public void setSalesProductNumber(Long salesProductNumber)
{
this.salesProductNumber = salesProductNumber;
}

public Long getSalesProductNumber()
{
return salesProductNumber;
}
public void setMeters(String meters)
{
this.meters = meters;
}

public String getMeters()
{
return meters;
}
public void setStatus(String status)
{
this.status = status;
}

public String getStatus()
{
return status;
}
public void setDel(Long del)
{
this.del = del;
}

public Long getDel()
{
return del;
}

@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("productId", getProductId())
.append("salesId", getSalesId())
.append("productNumber", getProductNumber())
.append("salesProductNumber", getSalesProductNumber())
.append("meters", getMeters())
.append("status", getStatus())
.append("createTime", getCreateTime())
.append("updateTime", getUpdateTime())
.append("createBy", getCreateBy())
.append("updateBy", getUpdateBy())
.append("del", getDel())
.toString();
}
}